<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>管理端口详情</title>
    <link rel="stylesheet" href="./css/swiper.css">
    <link rel="stylesheet" href="./css/public.css">
    <style>
        body {
            background: #F2F2F2;
        }

        .title {
            font-size: 0.373rem;
            font-weight: bold;
            color: rgba(26, 26, 26, 1);
            text-align: center;
            padding: 0.506rem 0;
            width: 100%;
            box-sizing: border-box;
            border-bottom: 1px solid #eee;
            background: #fff;
        }

        .list_ma {
            justify-content: space-around;
            border-bottom: 1px solid #eee;
            background: #fff;
            padding: 0.266rem;
        }

        .list_ma_li_t1 {
            font-size: 0.373rem;
        }

        .list_ma_li_t2 {
            font-size: 12px;
            transform: scale(0.75);
            margin-left: 0.4rem;
        }

        .list_ma_li_c1 {
            color: #FF0000;
        }

        .list_ma_li_c2 {
            color: #50AB4B;
        }

        .list_ma_li_c3 {
            color: #FFC000;
        }

        .tips {
            text-align: center;
            font-size: 12px;
            color: rgba(77, 65, 194, 1);
            transform: scale(0.75);
            margin-top: 10px;
        }

        .mask {
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            box-sizing: border-box;
            background: rgba(0, 0, 0, 0.35);
            z-index: 999;
            display: none;
        }

        .pop {
            width: 6rem;
            height: 3.2rem;
            background: rgba(255, 255, 255, 0.7);
            margin: 0 auto;
            box-sizing: border-box;
            margin-top: 4.5rem;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            font-weight: 500;
            color: rgba(38, 38, 38, 1);
        }

        .pop input {
            width: 0.6rem;
            border: none;
            outline: none;
            border-bottom: rgba(38, 38, 38, 1) 1px solid;
            background: none;
        }
    </style>
    <script src="./js/index.js"></script>

</head>

<body>
    <main>
        <div class="title">锦绣小区215楼1单元</div>
        <div class="flex list_ma">
            <div class="list_ma_li list_ma_li_c1">
                <div class="list_ma_li_t1">602</div>
                <div style="display:none;" class="list_ma_li_t2">1.2斤</div>
            </div>
            <div class="list_ma_li list_ma_li_c2">
                <div class="list_ma_li_t1">602</div>
                <div style="display:none;" class="list_ma_li_t2">1.2斤</div>
            </div>
            <div class="list_ma_li list_ma_li_c3">
                <div class="list_ma_li_t1">602</div>
                <div style="display:none;" class="list_ma_li_t2">1.2斤</div>
            </div>
        </div>
        <div class="flex list_ma">
            <div class="list_ma_li list_ma_li_c1">
                <div class="list_ma_li_t1">603</div>
                <div style="display:none;" class="list_ma_li_t2">1.2斤</div>
            </div>
            <div class="list_ma_li list_ma_li_c2">
                <div class="list_ma_li_t1">603</div>
                <div style="display:none;" class="list_ma_li_t2">1.2斤</div>
            </div>
            <div class="list_ma_li list_ma_li_c3">
                <div class="list_ma_li_t1">603</div>
                <div style="display:none;" class="list_ma_li_t2">1.2斤</div>
            </div>
        </div>
        <div class="flex list_ma">
            <div class="list_ma_li list_ma_li_c1">
                <div class="list_ma_li_t1">602</div>
                <div style="display:none;" class="list_ma_li_t2">1.2斤</div>
            </div>
            <div class="list_ma_li list_ma_li_c2">
                <div class="list_ma_li_t1">602</div>
                <div style="display:none;" class="list_ma_li_t2">1.2斤</div>
            </div>
            <div class="list_ma_li list_ma_li_c3">
                <div class="list_ma_li_t1">602</div>
                <div style="display:none;" class="list_ma_li_t2">1.2斤</div>
            </div>
        </div>
        <div class="tips">注：绿色已回收，红色的已提交，黄色的未提交，黑色的未参加。</div>
        <div class="mask">
            <div class="flex pop">
                <div>请输入物品重量:</div>
                <input class="pop_input" type="text">
                <div>kg</div>
            </div>

        </div>
        <div class="flex footer">
            <div class="footer_li footer_active sy">
                <img src="./img/footer_img1.png" alt="">
                <div>首页</div>
            </div>
            <div class="footer_li fl">
                <img src="./img/footer_img2.png" alt="">
                <div>分类</div>
            </div>
            <div class="footer_li fw">
                <img src="./img/footer_img3.png" alt="">
                <div>服务</div>
            </div>
            <div class="footer_li wd">
                <img src="./img/footer_img4.png" alt="">
                <div>我的</div>
            </div>
        </div>
    </main>

    <script src="./js/jquery.js"></script>
    <script src="./js/swiper.js"></script>
    <script src="./js/public.js"></script>
    <script>
        var index = -1;
        $('.list_ma_li_t1').click(function () {
            $('.mask').show();
            index = $(this).parent().index('.list_ma_li');
            console.log(index);
        })

        $('.mask').keyup(function (event) {
            if (event.keyCode == 13) {
                //这里填写你要做的事件
                //TODO
                var val = $('.pop_input').val();
                $('.list_ma_li').eq(index).find('.list_ma_li_t2').text(val + '斤');
                $('.list_ma_li').eq(index).find('.list_ma_li_t2').show();
                $('.mask').hide();
                $('.pop_input').val('');
            }
        });


    </script>
</body>

</html>